<script setup lang="ts" name="systemUser">
import { useRequest } from 'vue-request';
const res = ref('');
const getUser = async () => {
  const res = await api({
    method: 'post',
    url: '/system/user/getListByConditions',
  });
  return res.data.body;
};

const getFileInfo = async () => {
  const res = await api({
    method: 'get',
    url: '/oss/fileInfo/hongqi',
  });
  console.log(res);
  return res.data.body;
};

const { data } = useRequest(() => getUser());

onMounted(() => {
  getFileInfo();
});
</script>
<template>
  <el-input v-model="res" placeholder="请输入内容"></el-input>
  <el-table :data="data">
    <el-table-column label="id" prop="id" />
    <el-table-column label="username" prop="username" />
    <el-table-column label="name" prop="name" />
    <el-table-column label="gender" prop="gender" />
  </el-table>
</template>
<style scoped lang="scss"></style>
